#ifndef ZWULIUCLIENT_H
#define ZWULIUCLIENT_H

#include <QtGui/QWidget>
#include "ui_zwuliuclient.h"
#include "ui_ZAdminiCtrlDialog.h"
#include "../../ZWuliuSvr/DBOpt/ZDBWuliuUser.h"

class ZWuliuClient : public QWidget
{
	Q_OBJECT

public:
	ZWuliuClient(QWidget *parent = 0, Qt::WFlags flags = 0);
	~ZWuliuClient();

public:
	static ZWuliuClient* GetMainWnd();

public:
	void Init();

signals:
	void _initSignal();

private slots:
	void _initSlot();
	void _onProvinceIndexChange( QString sPrivinceName );
	void _onSearchClicked( bool bChecked );
	void _onSendSysMsgClicked( bool bChecked );
	void _onOpenLinkLabel(QString sLink);

private slots:
	void _onGetMsgTimer();
	void _onCheckStateTimer();

private:
	void _initClientUI();
	void _initAdminUI();
	int _getAddDays();

private:
	void _reloadTable();

private:
	Ui::ZWuliuClientClass		clientUi;
	Ui::ZWuliuAdminClient		adminiUi;
	std::vector<ZDBWuliuUser>	m_tmpUser;
	QTimer						m_getMsgTimer;
	QTimer						m_checkUserStateTimer;
};

#endif // ZWULIUCLIENT_H
